package com.mengma.ec.service.portal;

import com.mengma.ec.commons.ServerResponse;
import com.mengma.ec.entity.User;

import javax.servlet.http.HttpSession;

/**
 * @Auther: xixi
 * @Date: 2018/9/12 0012 14:36
 * @Description: 类描述！！！！
 */
public interface IUserService {

    /**
     * 检查 userName 是否存在
     */
    ServerResponse<User> login(User user);

    ServerResponse<User> register(User user);

    ServerResponse check_valid(String str, String type);

    String forget_get_question(String username);

    ServerResponse<String> forget_get_answer(String username, String question, String answer);

    ServerResponse<String> reset_password(String passwordOld, String passwordNew,HttpSession session);

    ServerResponse<String> forget_get_password(String username, String passwordNew, String forgetToken);

    ServerResponse<User> updata_information(User user, HttpSession session);

    ServerResponse<User> get_information(User user);
}
